﻿<script>
  highlight_subnav('addressmanagement');
</script>
<div class="tpl-content-wrapper">
            <div class="row-content am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title  am-cf">地址管理列表</div>
                            </div>
                            <div class="widget-body  am-fr">
                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                                    <div class="am-form-group">
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">
                                                <a href="/admin/location/addlocation" class="am-btn am-btn-default am-btn-success" ><span class="am-icon-plus"></span> 新增</a>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
									&nbsp;&nbsp;&nbsp;
                                </div>
                                <form action="" method="get">
                                <div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
                                    <div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">
                                        <input type="text" class="am-form-field" name='name' placeholder="请输入关键字进行搜索.." value="<?php echo isset($_GET['name'])? $_GET['name'] : '' ?>">
                                        <span class="am-input-group-btn">
            								<button class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search" type="submit"></button>
         								</span>
                                    </div>
                                </div>
                                </form>
                                <div class="am-u-sm-12">
                                    <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
                                        <thead>
                                            <tr>
                                                <th>序号</th>
                                                <th>地址名</th>
                                                <th>创建时间</th>
                                                <th>生成二维码</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                       	<?php foreach ($data as $key => $value) : ?>
                                            <tr class="gradeX">
                                                <td class="am-text-middle"><?php echo $value['id'];?></td>
                                                <td class="am-text-middle"><?php echo $value['location_name'];?></td>
                                                <td class="am-text-middle"><?php echo date('Y-m-d H:i:s',$value['create_time']);?></td>
                                                <td>
                                                    <div class="tpl-table-black-operation">
                                                       <a href="/admin/export/qrcode?locationid=<?php echo $value['id']?>">
                                                            <i class="am-icon-pencil"></i> 点击生成
                                                        </a>
                                                    </div> 
                                                </td>
                                                </td>
                                            </tr>
                                        <?php endforeach;?>
                                            <!-- more data -->
                                        </tbody>
                                    </table>
                                </div>
                                <div class="am-u-lg-12 am-cf">
                                    <div class="am-fr" style="display: none;">
                                        <ul class="am-pagination tpl-pagination">
                                            <li class="am-disabled"><a href="#">«</a></li>
                                            <li class="am-active"><a href="#">1</a></li>
                                            <li><a href="#">2</a></li>
                                            <li><a href="#">3</a></li>
                                            <li><a href="#">4</a></li>
                                            <li><a href="#">5</a></li>
                                            <li><a href="#">»</a></li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
</div>

